﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace AutoShutDown
{
    public partial class AutoShutDownService : ServiceBase
    {

        ShutImplement _imp = new ShutImplement();
        public AutoShutDownService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            _imp.Start();
        }

        protected override void OnStop()
        {
            _imp.Stop();
        }
    }
}
